﻿/**
* 插件类：接口类的子类
* 继承QObject(带ui的继承QWidget)
* 继承接口类
*/
#pragma once

#include "mydll_global.h"
#include "IMyDll.h"		//引入接口类

class MYDLL_EXPORT MyDll:public QObject, public IMyDll
{
	//宏3联
	Q_OBJECT
	Q_PLUGIN_METADATA(IID IMyDll_IID)	//描述插件元数据
	Q_INTERFACES(IMyDll)				//本类要实现的接口
public:
    MyDll();
	~MyDll();
	QString title() override;
	QString version() override;
	void setNumber(int number) override;
	int getNumber() const override;
private:
	int m_number = 0;
};
